package com.itbaizhan.shopping_common.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itbaizhan.shopping_common.pojo.Role;

import java.util.List;

/**
 * @program: shopping
 * @InterfaceName RoleService
 * @description: 角色服务
 * @author: jing
 * @create: 2025-06-17 10:31
 **/
public interface RoleService {

    void add(Role role);

    void update(Role role);

    void delete(Long id);

    Role findById(Long id);

    List<Role> findAll();

    Page<Role> search(int page,int size);

    void updatePermissionToRole(Long rid,Long[] pids);
}
